# coding = utf-8

import hashlib
import hmac

m = hashlib.md5()
m.update(b"Hello")
print(m.hexdigest())

m.update(b"It's me")
print(m.hexdigest())

m1 = hashlib.md5()
m1.update(b"HelloIt's me")
print(m1.hexdigest())

a1 = hmac.new(b"nihao", "你是250".encode(encoding="utf-8"))
print(a1.hexdigest())
a2 = hmac.new(b"234", "你是250".encode(encoding="utf-8"))
print(a2.hexdigest())

